//
//  WCInfoEditView.h
//  WC
//
//  Created by 杨鑫 on 15/5/7.
//  Copyright (c) 2015年 智康. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, WCInfoEditType) {
    WCInfoEditTypePhone,
    WCInfoEditTypeName,
    WCInfoEditTypeText,
    WCInfoEditTypeMoney,
    WCInfoEditTypeInteger
};

@interface WCInfoEditView : UIView

@property (nonatomic) WCInfoEditType type;
@property (weak, nonatomic) UILabel *titleLabel;
@property (weak, nonatomic) UITextField *textField;


@property (nonatomic,  assign) NSInteger limitLenth;


@property (copy, nonatomic) BOOL(^save)(NSString *txt);
@property (copy, nonatomic) void(^cancel)(void);

- (void)showIn:(UIView *)view animated:(BOOL)animated;

@end
